package demo1;

public class Test {
    public static void main(String[] args) {
        MyArrayList myArrayList = new MyArrayList();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(2,10);
        myArrayList.add(2,10);
        System.out.println(myArrayList.contains(9));
        System.out.println(myArrayList.get(0));
        myArrayList.set(1,20);
        myArrayList.remove(10);
        System.out.println(myArrayList.size());
        System.out.println(myArrayList);
        myArrayList.clear();
        System.out.println(myArrayList);
    }
}
